package com.woniu.defecttracking.service.impl;

import com.woniu.defecttracking.commens.ComUtil;
import com.woniu.defecttracking.dto.AddFeedBackDto;
import com.woniu.defecttracking.entity.FeedBack;
import com.woniu.defecttracking.mapper.FeedBackMapper;
import com.woniu.defecttracking.param.AddFeedBackParam;
import com.woniu.defecttracking.service.FeedBackService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author tiangle
 * @since 2021-12-31
 */
@Service
public class FeedBackServiceImpl extends ServiceImpl<FeedBackMapper, FeedBack> implements FeedBackService {



    @Override
    public AddFeedBackDto addFeedBack(AddFeedBackDto addFeedBackDto) {
        /*
        String time = ComUtil.nowDateTime();
        //生成反馈编号
        String code = ComUtil.emailCode(5);

        FeedBack feedBack = ComUtil.copyProperties(addFeedBackDto, FeedBack.class);
        feedBack.setFeedBackNum(code);
        feedBack.setFeedBackTime(time);
        int insert = this.baseMapper .insert(feedBack);
        if(0<insert){
            return addFeedBackDto;
        }
         */

        return null;
    }


}
